package com.lyf.shop.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lyf.common.core.annotation.Excel;
import com.lyf.common.core.web.domain.BaseEntity;

/**
 * 商品所属区域对象 t_region
 * 
 * @author lyf
 * @date 2023-02-10
 */
public class Region extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 超市id */
    @Excel(name = "超市id")
    private Long supermarketId;

    /** 分类状态（0正常 1停用） */
    @Excel(name = "分类状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 所属区域名称 */
    @Excel(name = "所属区域名称")
    private String name;

    /** 区域负责人id */
    @Excel(name = "区域负责人id")
    private Long employeeId;

    private String postName;

    /** 逻辑删除状态（0：未删除 1：已删除) */
    private String delFlag;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }


    public void setSupermarketId(Long supermarketId) 
    {
        this.supermarketId = supermarketId;
    }

    public Long getSupermarketId() 
    {
        return supermarketId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setEmployeeId(Long employeeId) 
    {
        this.employeeId = employeeId;
    }

    public Long getEmployeeId() 
    {
        return employeeId;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    public String getPostName() {
        return postName;
    }

    public void setPostName(String postName) {
        this.postName = postName;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("supermarketId", getSupermarketId())
            .append("status", getStatus())
            .append("name", getName())
            .append("employeeId", getEmployeeId())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("remarks", getRemarks())
                .append("postName",getPostName())
                .toString();
    }
}
